import Vue from 'vue'
import VueRouter from 'vue-router'


import Login from "@/views/Login";
import Register from "@/views/Register";
import Index from "@/views/Index";
Vue.use(VueRouter)

//路由编辑

const routes = [
    //初始进入登陆页面
  {
    path: '/',
    component: Login
  },

  //登录
  {
    path: '/login',
    component: Login
  },

    //首页
  {
    path: '/index',
    component: Index
  },

    //注册
  {
    path: '/register',
    component: Register
  },


]

const router = new VueRouter({
  routes
})

export default router
